<?php
namespace Home\Controller;
use Think\Controller;
class PhoneController extends HomeController
{
	public function index()
	{
		$phone = $_SESSION['home_user']['phone'];
		$this->assign('phone',$phone);
		$this->display();
	}

	public function edit()
	{
		// 判断手机验证码
		if(I('post.yzm')!=6532){
			// $this->error("手机验证码错误！");exit;
		}

		// 执行修改


	}

	public function ajax()
	{
		$data = I('post.phone');
		echo $data;
		include "./yanzheng/SendTemplateSMS.php";
		sendTemplateSMS(I('post.phone'),array('6532','5'),"1");//手机号码，替换内容数组，模板ID
		$this->ajaxReturn($data);
	}
}